package com.cskaoyan.market.controller;

import com.cskaoyan.market.db.domain.MarketFeedback;
import com.cskaoyan.market.service.MarketFeedbackService;
import com.cskaoyan.market.util.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: 付诚
 * @Date: 2024/5/19 20:22
 * @Description:
 */
@RestController
@RequestMapping("/admin/feedback")
public class AdminFeedbackController {

    @Autowired
    private MarketFeedbackService marketFeedback;

    @RequestMapping("/list")
    private Object list(Integer page, Integer limit, String username, String sort, String order, String id)  {

        List<MarketFeedback> marketFeedbackList = marketFeedback.list(page, limit, username, sort, order, id);
        return ResponseUtil.okList(marketFeedbackList);
    }
}
